import { useNavigate } from "react-router-dom";
import { useEffect } from "react";
import axios from "axios";
const Home = () => {
  const navigate = useNavigate();

  function navigateTo(path) {
    navigate(path);
  }

  return (
    <div>
      <button onClick={(e) => navigateTo("/echarts")}>echarts</button>
      <button onClick={(e) => navigateTo("/usermange")}>usermange</button>
    </div>
  );
};
export default Home;
